<!DOCTYPE html>
<html>
<head>
    <title><%= title %></title>
    <link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
    <link rel="stylesheet" href="/stylesheets/header.css">
    <link href='https://cdn.webfont.youziku.com/webfonts/nomal/107450/45803/59a915bef629d808084fd878.css' rel='stylesheet'>
    <script charset="utf-8" src="/kindeditor/kindeditor-all-min.js"></script>
    <script charset="utf-8" src="/kindeditor/lang/zh-CN.js"></script>
    <script>
        KindEditor.ready(function (k) {
            editor = k.create('textarea',{
                allowImageUpload : false,
                items : ['undo', 'redo', '|', 'preview', 'template', 'code', 'cut', 'copy', 'paste',
                    'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
                    'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                    'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
                    'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
                    'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
                    'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
                    'anchor', 'link', 'unlink',
                ]
            });
        });
    </script>
</head>
<body>
<%- include header %>
<div class="container">
	<h1><%= title %></h1>
	<form method="post">
		<div class="form-group">
			<label for="inputTitle">标题：</label>
			<input class="form-control" type="text" name="title" value="<%= post.title%>" id="inputTitle" disabled>
		</div>
		<div class="form-group">
		    <label for="inputChange">正文：</label>
		    <textarea class="form-control" name="post" id="inputChange" rows="20"><%= post.post%></textarea>
    	</div>
    	<button class="btn btn-primary" type="submit">发表</button>
	</form>
</div>
<script type="text/javascript" src="/javascripts/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="/javascripts/bootstrap.min.js"></script>
</body>
</html>